package cn.jdx.entity;

import lombok.Data;
import lombok.ToString;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

//生成实体类
@Data
@ToString
//交给Spring容器管理
@Component
//设置配置类的前缀
@ConfigurationProperties(prefix = "p")
public class People {
    private String name;
    private int age;
    private String sex;
    private String descInfo; //测试 descInfo 与 desc_info 的名称互相转换
}
